from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QDialog, QMessageBox


class BaseDialog(QDialog):
    """基础对话窗体"""
    def __init__(self):
        super().__init__()
        self.set_default_component()  # 设置默认组件

    def set_default_component(self):
        """默认组件"""
        self.setWindowFlags(Qt.WindowTitleHint | Qt.WindowMinimizeButtonHint | Qt.WindowCloseButtonHint)

    def signal_binder(self):
        pass

